﻿using System.Windows;

using Microsoft.Phone.Controls;

using Xamarin.Forms;
using Xamarin.Forms.Platform.WinPhone;

[assembly: ExportRenderer(typeof(Outcoder.UI.Xaml.AppBar), typeof(Outcoder.UI.Xaml.Renderers.AppBarRenderer))]

namespace CalciumTemplateApp.WinPhone
{
	public partial class MainPage : PhoneApplicationPage
	{
		public MainPage()
		{
			InitializeComponent();

			Forms.Init();

			var formsPage = CalciumTemplateApp.App.GetMainPage();
//			var platform = new Platform(this);
//			platform.SetPage(formsPage);
//			Content = (UIElement)platform;
//			App.Platform = platform;
			Content = formsPage.ConvertPageToUIElement(this);
			//CalciumTemplateApp.App.Platform = (IPlatform)Content;
		}
	}

}

